//
//  ScreeningCell.m
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/9/27.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#import "ScreeningCell.h"


@implementation ScreeningCell

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self createSubViews];
    }
    return self;
}
//-(void)layoutSubviews{
//    [self createSubViews];
//}
-(void)createSubViews{
    _label = [[UILabel alloc] init];
    _label.textAlignment = NSTextAlignmentCenter;
//    _label.adjustsFontSizeToFitWidth = YES;
    _label.text = @"学费月付";
    _label.layer.borderWidth = 1.0f;
    _label.layer.borderColor = [UIColor lightGrayColor].CGColor;
    _label.textColor = [UIColor blackColor];
    [self.contentView addSubview:_label];
    [_label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.contentView).with.insets(UIEdgeInsetsMake(0, 0, 0, 0));
    }];
    _label.layer.cornerRadius = 4;
    _label.layer.masksToBounds = YES;
}
@end
